package cn.tedu.fruitshop.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class CarAddNewDTO implements Serializable {
    /*
    * 购物车id
    * */
    private Integer id;
    /*
     * (斤)数量
     * */
    @NotNull(message = "重量不能为空")
    @ApiModelProperty(value = "商品重量",required = true)
    private Double weight;
    /*
     * 商品详情id
     * */
    @NotNull(message = "商品id不能为空")
    @ApiModelProperty(value = "商品id",required = true)
    private Integer itemId;
    /*
     * 用户id
     * */
    private Integer userId;
}
